import java.io.IOException;
import java.util.Arrays;
import java.util.Comparator;


public class VRP {

	static Data data;
	public static void main(String[] args) 
	{
		try 
		{
			if (args.length > 0)
			{
				doSolve("C:/dev/coursera/warehouse/tmp.data");
			}
			else
			{
				//doSolve("C:/dev/coursera/warehouse/tmp.data");
				doSolve("C:/dev/coursera/vrp/data/vrp_5_4_1"); //
			}
		} 
		catch (IOException e) 
		{
			e.printStackTrace();
		}

	}
	
	public static void doSolve(String file) throws IOException
	{
		data = RawDataHandler.ParseData(file);
		Solver solver = new Solver(data);
		solver.SolveIt();
		
		RawDataHandler.OutputSolution(data);

		
	}


}
